/* ------------------ 框架 ------------------ */
.page-frame {
    padding: 0 15px;

    .frame__box + .frame__box {
        margin-top: 20px;
        border-radius: 16px;
        overflow: hidden;
    }

    .frame__head {
        height: 40px;
        padding: 0 15px;
        line-height: 40px;
        font-size: 14px;
        color: #006db8;
        background: #f0f6fb;
        border-radius: 16px 16px 0 0;

        .head__icon {
            display: inline-block;
            margin-right: 8px;
            vertical-align: middle;
            font-size: 18px;
        }

        .head__tips {
            color: $--type-danger;
            font-size: 12px;
            text-align: right;
        }

    }

    .frame__body {
        padding: 12px 15px;
        background: #fff;
        border-radius: 0 0 16px 16px;
    }

    /* --------- icon --------- */
    .frame-icon {
        padding: 0 12px;
        color: #006db8;
        font-weight: 600;
        vertical-align: middle;
        [class*='el-icon'],
        .icon {
            font-size: 16px;
            font-weight: 600;
        }
    }

    /* --------- 患者资料 --------- */
    .frame__patient {}

    /* --------- 操作模块 --------- */
    .frame__handles {}

    /* --------- 历史自主开方 --------- */
    .frame__history {
        width: 340px;
        margin-left: 15px;

        .frame__body {
            height: 608px;
        }

        .history__list {
            height: 90%;
            margin: 5% 0;
            overflow-y: auto;

            .history__item {
                padding: 22px 12px;
                color: $--cont-color;
                font-size: 14px;
                line-height: 20px;
                border-bottom: 1px solid $--border-color;

                &:last-child {
                    border-bottom: none;
                }

                .item__row {
                    margin-bottom: 6px;
                    color: $--main-color;
                    font-size: 14px;

                    .row__label{
                        color: $--cont-color;
                    }
                }

                .o-link{
                    margin: 0 6px 4px 0;
                }
            }

        }
    }
}

/* ------------------ 描述列表 ------------------ */
.x-desc {
    position: relative;

    &.s-xs {
        .desc__item {
            margin-bottom: 6px;
        }
        .desc__label {
            width: 100px;
        }
    }
    &.s-sm {
        .desc__item {
            margin-bottom: 12px;
        }
        .desc__label {
            width: 120px;
        }
    }
    &.s-md {
        .desc__item {
            margin-bottom: 22px;
        }
        .desc__label {
            width: 140px;
        }
    }
    &.s-ld {
        .desc__item {
            margin-bottom: 28px;
        }
        .desc__label {
            width: 160px;
        }
    }

    &.has-flex {
        @include flex;
        @include flex-wrap;
    }
    &.s-column--1 .desc__item {
        @include flex-1;
        max-width: 100%;
        min-width: 100%;
    }
    &.s-column--2 .desc__item {
        @include flex-1;
        max-width: 50%;
        min-width: 50%;
    }
    &.s-column--3 .desc__item {
        @include flex-1;
        max-width: 33%;
        min-width: 33%;
    }
    &.s-column--4 .desc__item {
        @include flex-1;
        max-width: 25%;
        min-width: 25%;
    }

    &.has-border {
        padding: 0;
        border: solid $--border-color;
        border-width: 1px 1px 0 1px;

        .desc__item {
            padding: 0;
            margin: 0;
            border-bottom: 1px solid $--border-color;
            .desc__label,
            .desc__value {
                padding: 6px 12px;
            }
            .desc__label + .desc__value {
                border-left: 1px solid $--border-color;
            }
        }
    }

    &.s-align-left {
        .desc__label {
            text-align: left;
        }
    }
    &.s-align-right {
        .desc__label {
            text-align: right;
        }
    }


    .desc__item {
        @include flex;

        margin-bottom: 12px;
        color: $--main-color;
        font-size: 0;
        line-height: 28px;

        &.s-column--1 {
            @include flex-1;
            max-width: 100%;
            min-width: 100%;
        }
        &.s-column--2 {
            @include flex-1;
            max-width: 50%;
            min-width: 50%;
        }
        &.s-column--3 {
            @include flex-1;
            max-width: 33%;
            min-width: 33%;
        }
        &.s-column--4 {
            @include flex-1;
            max-width: 25%;
            min-width: 25%;
        }
    }
    .desc__label {
        width: 120px;
        padding: 4px 12px;
        color: $--cont-color;
        font-size: 14px;
        // font-weight: 600;
        line-height: 20px;
        text-align: left;
    }
    .desc__value {
        @include flex-1;

        position: relative;
        color: $--main-color;
        font-size: 14px;
        word-break: break-all;
        overflow: hidden;

        // 下划线
        .value__inner {
            display: inline;
            width: 100%;
            padding-bottom: 5px;
            border-bottom: 1px solid $--border-color;
            &::after {
                content: "";
                position: absolute;
                left: 0;
                right: 5px;
                bottom: 0;
                height: 1px;
                background: $--border-color;
            }
        }

        // link
        .o-link--icon {
            padding: 0 6px;
            font-weight: 600;
            [class*='el-icon'],
            .icon {
                font-size: 16px;
                font-weight: 600;
            }
        }
    }
}

/* ------------------ 开中/西药弹框 ------------------ */
.drug-popup{

}


/* ------------------ 药品详情弹框 ------------------ */
.popup-drug__detail {
    .detail__head {
        @include flex;
        @include flex-col-c;
        margin-bottom: 10px;
        .head__avatar {
            width: 140px;
            height: 140px;
            margin-right: 12px;
        }
        .head__info {
            @include flex-1;
            .info__title {
                margin-bottom: 24px;
                color: $--type-primary-dark;
                font-size: 24px;
                font-weight: 600;
            }
            .info__row {
                margin-top: 12px;
                color: $--main-color;
                font-size: 18px;
            }
        }
    }

    .detail__body {
        font-size: 14px;
    }
    .detail__box {
        @include flex;
        @include flex-wrap;
        color: $--tips-color;

        .box__item {
            width: 50%;
            padding: 6px;
        }
    }
    .detail__other {
        min-height: 160px;
        padding: 6px 12px;
        margin-top: 12px;
        color: $--cont-color;
        border: 1px solid $--border-color;
    }
}
